<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>UC-VID-001：视频学习原型</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/antd@5.12.8/dist/reset.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f5f5f5;
            color: #333;
        }
        
        .header {
            background: #fff;
            padding: 16px 24px;
            border-bottom: 1px solid #e8e8e8;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .breadcrumb {
            color: #666;
            font-size: 14px;
        }
        
        .breadcrumb a {
            color: #1890ff;
            text-decoration: none;
        }
        
        .main-content {
            display: flex;
            height: calc(100vh - 80px);
        }
        
        .video-section {
            flex: 1;
            background: #000;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        
        .video-player {
            flex: 1;
            position: relative;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .video-placeholder {
            color: #fff;
            text-align: center;
        }
        
        .video-placeholder-icon {
            font-size: 64px;
            margin-bottom: 16px;
            opacity: 0.6;
        }
        
        .video-controls {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .video-player:hover .video-controls {
            opacity: 1;
        }
        
        .play-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #1890ff;
            border: none;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .progress-container {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .progress-bar {
            flex: 1;
            height: 6px;
            background: rgba(255,255,255,0.3);
            border-radius: 3px;
            position: relative;
            cursor: pointer;
        }
        
        .progress-fill {
            height: 100%;
            background: #1890ff;
            border-radius: 3px;
            width: 30%;
        }
        
        .progress-thumb {
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            background: #1890ff;
            border-radius: 50%;
            cursor: pointer;
        }
        
        .time-display {
            color: #fff;
            font-size: 14px;
            white-space: nowrap;
            font-family: monospace;
        }
        
        .volume-control {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .volume-slider {
            width: 80px;
            height: 4px;
            background: rgba(255,255,255,0.3);
            border-radius: 2px;
            position: relative;
            cursor: pointer;
        }
        
        .volume-fill {
            height: 100%;
            background: #1890ff;
            border-radius: 2px;
            width: 70%;
        }
        
        .control-btn {
            background: none;
            border: none;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            padding: 8px;
            border-radius: 4px;
            transition: background-color 0.3s;
        }
        
        .control-btn:hover {
            background: rgba(255,255,255,0.2);
        }
        
        .sidebar {
            width: 350px;
            background: #fff;
            border-left: 1px solid #e8e8e8;
            display: flex;
            flex-direction: column;
        }
        
        .sidebar-header {
            padding: 16px 20px;
            border-bottom: 1px solid #e8e8e8;
            background: #fafafa;
        }
        
        .course-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }
        
        .course-meta {
            font-size: 12px;
            color: #666;
        }
        
        .sidebar-content {
            flex: 1;
            overflow-y: auto;
        }
        
        .tab-nav {
            display: flex;
            border-bottom: 1px solid #e8e8e8;
        }
        
        .tab-item {
            flex: 1;
            padding: 12px 16px;
            text-align: center;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
        }
        
        .tab-item.active {
            color: #1890ff;
            border-bottom-color: #1890ff;
            background: #f0f8ff;
        }
        
        .tab-content {
            padding: 20px;
        }
        
        .chapter-list {
            list-style: none;
        }
        
        .chapter-item {
            margin-bottom: 12px;
            border: 1px solid #e8e8e8;
            border-radius: 6px;
            overflow: hidden;
        }
        
        .chapter-header {
            padding: 12px 16px;
            background: #f8f9fa;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .chapter-title {
            font-size: 14px;
            font-weight: 500;
            color: #333;
        }
        
        .chapter-duration {
            font-size: 12px;
            color: #666;
        }
        
        .chapter-content {
            padding: 0 16px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s;
        }
        
        .chapter-item.expanded .chapter-content {
            max-height: 200px;
        }
        
        .lesson-list {
            list-style: none;
        }
        
        .lesson-item {
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .lesson-item:last-child {
            border-bottom: none;
        }
        
        .lesson-item.current {
            background: #e6f7ff;
            color: #1890ff;
        }
        
        .lesson-icon {
            font-size: 16px;
        }
        
        .lesson-title {
            flex: 1;
            font-size: 13px;
        }
        
        .lesson-duration {
            font-size: 11px;
            color: #666;
        }
        
        .subtitle-panel {
            padding: 20px;
        }
        
        .subtitle-controls {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .subtitle-btn {
            padding: 6px 12px;
            border: 1px solid #d9d9d9;
            background: #fff;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .subtitle-btn.active {
            background: #1890ff;
            border-color: #1890ff;
            color: #fff;
        }
        
        .subtitle-display {
            background: #f8f9fa;
            border: 1px solid #e8e8e8;
            border-radius: 6px;
            padding: 16px;
            min-height: 100px;
            font-size: 14px;
            line-height: 1.6;
        }
        
        .subtitle-text {
            margin-bottom: 8px;
        }
        
        .subtitle-time {
            font-size: 12px;
            color: #666;
        }
        
        .progress-panel {
            padding: 20px;
        }
        
        .progress-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 20px;
        }
        
        .stat-item {
            text-align: center;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 6px;
        }
        
        .stat-value {
            font-size: 20px;
            font-weight: 600;
            color: #1890ff;
            margin-bottom: 4px;
        }
        
        .stat-label {
            font-size: 12px;
            color: #666;
        }
        
        .progress-bar-container {
            margin-bottom: 16px;
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 12px;
            color: #666;
        }
        
        .progress-bar-bg {
            width: 100%;
            height: 8px;
            background: #f0f0f0;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .progress-bar-fill {
            height: 100%;
            background: #1890ff;
            border-radius: 4px;
            transition: width 0.3s;
        }
        
        .checkpoint-list {
            list-style: none;
        }
        
        .checkpoint-item {
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .checkpoint-item:last-child {
            border-bottom: none;
        }
        
        .checkpoint-icon {
            font-size: 16px;
        }
        
        .checkpoint-icon.completed {
            color: #52c41a;
        }
        
        .checkpoint-icon.pending {
            color: #d9d9d9;
        }
        
        .checkpoint-content {
            flex: 1;
        }
        
        .checkpoint-title {
            font-size: 13px;
            color: #333;
            margin-bottom: 2px;
        }
        
        .checkpoint-time {
            font-size: 11px;
            color: #666;
        }
        
        .learning-evidence {
            padding: 20px;
            border-top: 1px solid #e8e8e8;
        }
        
        .evidence-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
        }
        
        .evidence-item {
            padding: 8px 12px;
            background: #f8f9fa;
            border-radius: 4px;
            margin-bottom: 8px;
            font-size: 12px;
            color: #666;
        }
        
        .evidence-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        
        .btn {
            padding: 8px 16px;
            border: 1px solid;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: #1890ff;
            border-color: #1890ff;
            color: #fff;
        }
        
        .btn-primary:hover {
            background: #40a9ff;
            border-color: #40a9ff;
        }
        
        .btn-default {
            background: #fff;
            border-color: #d9d9d9;
            color: #333;
        }
        
        .btn-default:hover {
            border-color: #1890ff;
            color: #1890ff;
        }
        
        .floating-controls {
            position: fixed;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 100;
        }
        
        .floating-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(0,0,0,0.6);
            border: none;
            color: #fff;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .floating-btn:hover {
            background: rgba(0,0,0,0.8);
        }
        
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .modal-content {
            background: #fff;
            border-radius: 8px;
            padding: 24px;
            max-width: 500px;
            width: 90%;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #999;
        }
        
        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 20px;
        }
        
        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                height: 300px;
            }
            
            .floating-controls {
                display: none;
            }
        }
    </style>
</head>
<body>
    <!-- 页面头部 -->
    <div class="header">
        <div class="breadcrumb">
            <a href="#">首页</a> > <a href="#">课程学习</a> > 基础操作培训
        </div>
    </div>

    <!-- 主要内容区域 -->
    <div class="main-content">
        <!-- 视频播放区域 -->
        <div class="video-section">
            <div class="video-player" id="videoPlayer">
                <div class="video-placeholder">
                    <div class="video-placeholder-icon">🎬</div>
                    <div>点击播放视频</div>
                </div>
                <div class="video-controls">
                    <button class="play-btn" onclick="togglePlay()">▶️</button>
                    <div class="progress-container">
                        <div class="progress-bar" onclick="seekVideo(event)">
                            <div class="progress-fill"></div>
                            <div class="progress-thumb"></div>
                        </div>
                        <div class="time-display">0:00 / 30:00</div>
                    </div>
                    <div class="volume-control">
                        <span>🔊</span>
                        <div class="volume-slider" onclick="adjustVolume(event)">
                            <div class="volume-fill"></div>
                        </div>
                    </div>
                    <button class="control-btn" onclick="toggleFullscreen()">⛶</button>
                    <button class="control-btn" onclick="toggleSubtitle()">📝</button>
                    <button class="control-btn" onclick="openSettings()">⚙️</button>
                </div>
            </div>
        </div>

        <!-- 侧边栏 -->
        <div class="sidebar">
            <div class="sidebar-header">
                <div class="course-title">基础操作培训</div>
                <div class="course-meta">第1章 • 准备工具 • 30分钟</div>
            </div>
            
            <div class="sidebar-content">
                <div class="tab-nav">
                    <div class="tab-item active" onclick="switchTab('chapters')">章节</div>
                    <div class="tab-item" onclick="switchTab('subtitle')">字幕</div>
                    <div class="tab-item" onclick="switchTab('progress')">进度</div>
                </div>
                
                <!-- 章节列表 -->
                <div class="tab-content" id="chaptersTab">
                    <ul class="chapter-list">
                        <li class="chapter-item expanded">
                            <div class="chapter-header" onclick="toggleChapter(this)">
                                <div>
                                    <div class="chapter-title">第1章：准备工具</div>
                                    <div class="chapter-duration">30分钟</div>
                                </div>
                                <span>▼</span>
                            </div>
                            <div class="chapter-content">
                                <ul class="lesson-list">
                                    <li class="lesson-item current" onclick="selectLesson(this)">
                                        <span class="lesson-icon">▶️</span>
                                        <span class="lesson-title">1.1 工具准备</span>
                                        <span class="lesson-duration">10分钟</span>
                                    </li>
                                    <li class="lesson-item" onclick="selectLesson(this)">
                                        <span class="lesson-icon">⏸️</span>
                                        <span class="lesson-title">1.2 安全检查</span>
                                        <span class="lesson-duration">8分钟</span>
                                    </li>
                                    <li class="lesson-item" onclick="selectLesson(this)">
                                        <span class="lesson-icon">⏸️</span>
                                        <span class="lesson-title">1.3 环境准备</span>
                                        <span class="lesson-duration">12分钟</span>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <li class="chapter-item">
                            <div class="chapter-header" onclick="toggleChapter(this)">
                                <div>
                                    <div class="chapter-title">第2章：开始操作</div>
                                    <div class="chapter-duration">45分钟</div>
                                </div>
                                <span>▶</span>
                            </div>
                            <div class="chapter-content">
                                <ul class="lesson-list">
                                    <li class="lesson-item" onclick="selectLesson(this)">
                                        <span class="lesson-icon">⏸️</span>
                                        <span class="lesson-title">2.1 操作流程</span>
                                        <span class="lesson-duration">20分钟</span>
                                    </li>
                                    <li class="lesson-item" onclick="selectLesson(this)">
                                        <span class="lesson-icon">⏸️</span>
                                        <span class="lesson-title">2.2 注意事项</span>
                                        <span class="lesson-duration">15分钟</span>
                                    </li>
                                    <li class="lesson-item" onclick="selectLesson(this)">
                                        <span class="lesson-icon">⏸️</span>
                                        <span class="lesson-title">2.3 完成检查</span>
                                        <span class="lesson-duration">10分钟</span>
                                    </li>
                                </ul>
                            </div>
                        </li>
                    </ul>
                </div>
                
                <!-- 字幕面板 -->
                <div class="tab-content" id="subtitleTab" style="display: none;">
                    <div class="subtitle-panel">
                        <div class="subtitle-controls">
                            <button class="subtitle-btn active">中文</button>
                            <button class="subtitle-btn">英文</button>
                            <button class="subtitle-btn">关闭</button>
                        </div>
                        <div class="subtitle-display">
                            <div class="subtitle-text">操作前必须佩戴安全防护用品，确保工作环境安全。</div>
                            <div class="subtitle-time">00:15 - 00:18</div>
                        </div>
                    </div>
                </div>
                
                <!-- 进度面板 -->
                <div class="tab-content" id="progressTab" style="display: none;">
                    <div class="progress-panel">
                        <div class="progress-stats">
                            <div class="stat-item">
                                <div class="stat-value">25%</div>
                                <div class="stat-label">学习进度</div>
                            </div>
                            <div class="stat-item">
                                <div class="stat-value">15</div>
                                <div class="stat-label">学习时长(分钟)</div>
                            </div>
                        </div>
                        
                        <div class="progress-bar-container">
                            <div class="progress-label">
                                <span>整体进度</span>
                                <span>25%</span>
                            </div>
                            <div class="progress-bar-bg">
                                <div class="progress-bar-fill" style="width: 25%;"></div>
                            </div>
                        </div>
                        
                        <div class="checkpoint-list">
                            <div class="checkpoint-item">
                                <span class="checkpoint-icon completed">✓</span>
                                <div class="checkpoint-content">
                                    <div class="checkpoint-title">工具准备完成</div>
                                    <div class="checkpoint-time">00:10</div>
                                </div>
                            </div>
                            <div class="checkpoint-item">
                                <span class="checkpoint-icon completed">✓</span>
                                <div class="checkpoint-content">
                                    <div class="checkpoint-title">安全检查通过</div>
                                    <div class="checkpoint-time">00:18</div>
                                </div>
                            </div>
                            <div class="checkpoint-item">
                                <span class="checkpoint-icon pending">○</span>
                                <div class="checkpoint-content">
                                    <div class="checkpoint-title">环境准备完成</div>
                                    <div class="checkpoint-time">00:30</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 学习证据 -->
            <div class="learning-evidence">
                <div class="evidence-title">学习证据</div>
                <div class="evidence-item">✓ 观看时长: 15分钟</div>
                <div class="evidence-item">✓ 关键节点签到: 2/3</div>
                <div class="evidence-item">✓ 学习完成度: 25%</div>
                <div class="evidence-actions">
                    <button class="btn btn-primary" onclick="generateEvidence()">生成证据</button>
                    <button class="btn btn-default" onclick="downloadEvidence()">下载</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 浮动控制按钮 -->
    <div class="floating-controls">
        <button class="floating-btn" onclick="togglePlay()" title="播放/暂停">▶️</button>
        <button class="floating-btn" onclick="toggleSubtitle()" title="字幕">📝</button>
        <button class="floating-btn" onclick="openSettings()" title="设置">⚙️</button>
        <button class="floating-btn" onclick="toggleFullscreen()" title="全屏">⛶</button>
    </div>

    <!-- 设置弹窗 -->
    <div class="modal" id="settingsModal">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title">播放设置</h3>
                <button class="modal-close" onclick="closeModal()">&times;</button>
            </div>
            <div class="modal-body">
                <div style="margin-bottom: 16px;">
                    <label style="display: block; margin-bottom: 8px; font-weight: 500;">播放速度</label>
                    <select style="width: 100%; padding: 8px; border: 1px solid #d9d9d9; border-radius: 4px;">
                        <option value="0.5">0.5x</option>
                        <option value="0.75">0.75x</option>
                        <option value="1" selected>1x</option>
                        <option value="1.25">1.25x</option>
                        <option value="1.5">1.5x</option>
                        <option value="2">2x</option>
                    </select>
                </div>
                <div style="margin-bottom: 16px;">
                    <label style="display: block; margin-bottom: 8px; font-weight: 500;">字幕语言</label>
                    <select style="width: 100%; padding: 8px; border: 1px solid #d9d9d9; border-radius: 4px;">
                        <option value="zh" selected>中文</option>
                        <option value="en">英文</option>
                        <option value="vi">越南语</option>
                        <option value="off">关闭</option>
                    </select>
                </div>
                <div style="margin-bottom: 16px;">
                    <label style="display: block; margin-bottom: 8px; font-weight: 500;">画质</label>
                    <select style="width: 100%; padding: 8px; border: 1px solid #d9d9d9; border-radius: 4px;">
                        <option value="auto" selected>自动</option>
                        <option value="1080p">1080p</option>
                        <option value="720p">720p</option>
                        <option value="480p">480p</option>
                    </select>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default" onclick="closeModal()">取消</button>
                <button class="btn btn-primary" onclick="saveSettings()">保存</button>
            </div>
        </div>
    </div>

    <script>
        // 全局变量
        let isPlaying = false;
        let currentTime = 0;
        let totalTime = 1800; // 30分钟
        let currentTab = 'chapters';

        // 播放控制
        function togglePlay() {
            isPlaying = !isPlaying;
            const playBtn = document.querySelector('.play-btn');
            playBtn.textContent = isPlaying ? '⏸️' : '▶️';
            
            if (isPlaying) {
                startPlayback();
            } else {
                stopPlayback();
            }
        }

        function startPlayback() {
            // 模拟播放
            const interval = setInterval(() => {
                if (!isPlaying) {
                    clearInterval(interval);
                    return;
                }
                currentTime += 1;
                updateProgress();
                if (currentTime >= totalTime) {
                    currentTime = 0;
                }
            }, 1000);
        }

        function stopPlayback() {
            // 停止播放
        }

        function updateProgress() {
            const progress = (currentTime / totalTime) * 100;
            document.querySelector('.progress-fill').style.width = progress + '%';
            document.querySelector('.progress-thumb').style.left = progress + '%';
            
            const timeDisplay = document.querySelector('.time-display');
            timeDisplay.textContent = formatTime(currentTime) + ' / ' + formatTime(totalTime);
        }

        function formatTime(seconds) {
            const mins = Math.floor(seconds / 60);
            const secs = seconds % 60;
            return mins.toString().padStart(2, '0') + ':' + secs.toString().padStart(2, '0');
        }

        // 进度条控制
        function seekVideo(event) {
            const rect = event.currentTarget.getBoundingClientRect();
            const x = event.clientX - rect.left;
            const percentage = x / rect.width;
            currentTime = Math.floor(percentage * totalTime);
            updateProgress();
        }

        // 音量控制
        function adjustVolume(event) {
            const rect = event.currentTarget.getBoundingClientRect();
            const x = event.clientX - rect.left;
            const percentage = x / rect.width;
            document.querySelector('.volume-fill').style.width = (percentage * 100) + '%';
        }

        // 全屏控制
        function toggleFullscreen() {
            if (document.fullscreenElement) {
                document.exitFullscreen();
            } else {
                document.documentElement.requestFullscreen();
            }
        }

        // 字幕控制
        function toggleSubtitle() {
            console.log('切换字幕');
        }

        // 设置
        function openSettings() {
            document.getElementById('settingsModal').style.display = 'flex';
        }

        function saveSettings() {
            closeModal();
            console.log('保存设置');
        }

        // 标签页切换
        function switchTab(tabName) {
            // 更新标签状态
            document.querySelectorAll('.tab-item').forEach(tab => {
                tab.classList.remove('active');
            });
            event.target.classList.add('active');
            
            // 显示对应内容
            document.querySelectorAll('.tab-content').forEach(content => {
                content.style.display = 'none';
            });
            document.getElementById(tabName + 'Tab').style.display = 'block';
            
            currentTab = tabName;
        }

        // 章节控制
        function toggleChapter(element) {
            const chapterItem = element.parentElement;
            chapterItem.classList.toggle('expanded');
            
            const arrow = element.querySelector('span:last-child');
            arrow.textContent = chapterItem.classList.contains('expanded') ? '▼' : '▶';
        }

        function selectLesson(element) {
            document.querySelectorAll('.lesson-item').forEach(lesson => {
                lesson.classList.remove('current');
            });
            element.classList.add('current');
            
            const icon = element.querySelector('.lesson-icon');
            icon.textContent = '▶️';
            
            // 更新其他课程图标
            document.querySelectorAll('.lesson-item:not(.current)').forEach(lesson => {
                lesson.querySelector('.lesson-icon').textContent = '⏸️';
            });
        }

        // 学习证据
        function generateEvidence() {
            console.log('生成学习证据');
        }

        function downloadEvidence() {
            console.log('下载学习证据');
        }

        // 弹窗控制
        function closeModal() {
            document.getElementById('settingsModal').style.display = 'none';
        }

        // 点击弹窗外部关闭
        document.getElementById('settingsModal').addEventListener('click', (e) => {
            if (e.target.id === 'settingsModal') {
                closeModal();
            }
        });

        // 初始化
        document.addEventListener('DOMContentLoaded', () => {
            updateProgress();
        });
    </script>
</body>
</html>

